package org.yunshang.leather.domain.bo;

import org.yunshang.common.core.validate.AddGroup;
import org.yunshang.common.core.validate.EditGroup;
import org.yunshang.leather.domain.TLeather;
import org.yunshang.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 皮料信息业务对象 t_leather
 *
 * @author Lion Li
 * @date 2024-03-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TLeather.class, reverseConvertGenerate = false)
public class TLeatherBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 类型（1=0.26元, 2=0.29元,3=0.32元,4=二层-0.12元,5=特殊-0.48元）
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 状态（0=启用，1=禁用）
     */
    private String status;


}
